﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MsCreation
{
    class Hero : Character
    {
        // Player's inventory
        public List<string> inventory;

        public Hero()
        {
            // Create the empty inventory
            inventory = new List<string>();
        }

        public static void Initialize(Hero hero)
        {
            // Player starting stats
            hero.CurrentHealth = 100;
            hero.MaxHealth = 100;
            hero.CurrentMagic = 25;
            hero.MaxMagic = 25;
            hero.Strength = 10;
            hero.Defense = 6;
            hero.Agility = 7;
            hero.Experience = 0;
            hero.Gold = 0;
            
            // Prompt for the player's name. Repeat until a name is given.
            while (hero.Identifier == null || hero.Identifier == "" ||
                hero.Identifier == " ")
            {
                Console.WriteLine("What is your Hero's name?");
                hero.Identifier = Console.ReadLine();
            }

            // Give life to the player
            hero.isAlive = true;

            // Player starting attack. Since no weapon at first, pure strength.
            hero.AttackDamage = hero.Strength;

        }

        // Method to check whether or not the character already has an item
        // in his inventory
        public bool CheckItems(string item)
        {
            if (inventory.Contains(item))
                {
                    return true;
                }
            else
                {
                    return false;
                }
        }

            
        }
    }

